package com.sluggard.security.manage.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sluggard.security.manage.model.entity.DictTypeEntity;
import com.sluggard.security.manage.model.req.ChangeStatusReq;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 字典类型表 Mapper 接口
 * </p>
 *
 * @author lizheng
 * @since 2024-05-07
 */
public interface DictTypeMapper extends BaseMapper<DictTypeEntity> {

    List<DictTypeEntity> selectListWithData(@Param("ew") QueryWrapper<DictTypeEntity> queryWrapper);

    DictTypeEntity selectWithData(@Param("id") Long id);

    Page<DictTypeEntity> selectWithDataPage(Page<DictTypeEntity> page, @Param("ew") QueryWrapper<DictTypeEntity> chainWrapper);

    void changeStatus(@Param("req") ChangeStatusReq req);
}
